package cn.iocoder.yudao.module.cmt.dal.dataobject.content;

import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;

/**
 * Like DO
 *
 * @author 芋道源码
 */
@TableName("cmt_content_like")
@KeySequence("cmt_content_like_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ContentLikeDO extends BaseDO {

    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 社区ID
     */
    private Long communityId;
    /**
     * 社区名称(关联查询字段)
     */
    @TableField(exist = false)
    private String communityName;
    /**
     * 商户ID
     */
    private Long merchantId;
    /**
     * 商户名称(关联查询字段)
     */
    @TableField(exist = false)
    private String merchantName;
    /**
     * 点赞目标类型：post/comment/activity/course
     */
    private String targetType;
    /**
     * 点赞目标ID
     */
    private Long targetId;
    /**
     * 点赞会员ID
     */
    private Long userId;

}
